﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HPIT_Library.Ajax
{
    /// <summary>
    /// Handler1 的摘要说明
    /// </summary>
    public class Handler1 : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            //get请求接受方式
            var op = context.Request.QueryString["MyName"];
            //post请求接收方式
            //var op = context.Request.Form["MyName"];

            context.Response.ContentType = "text/plain";

            context.Response.Write("姓名"+op);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}